<%= form_for(:bug, :url => {:action => 'update'}, :method => 'put', :html => {:class=>'form-horizontal'}) do |t| %>
	<fieldset>
		<legend>
    <%= link_to 'BUG反馈列表', bugs_path %>
    </legend>
  <div class="control-group">
    <label class="control-label">BUG标题</label>
    <div class="controls">
    <%= t.text_field :title, :value => @bug.title %>
    </div>
  </div>
  <div class="control-group">
    <label class="control-label">提交用户</label>
    <div class="controls">
    <%= t.text_field :contact, :value => @bug.contact %>
    </div>
  </div>
  <div class="control-group">
    <label class="control-label">BUG描述</label>
    <div class="controls">
    <%= t.text_field :content, :value => @bug.content %>
    </div>
  </div>
  <div class="control-group">
    <label class="control-label">修复状态</label>
    <div class="controls">
      <%= radio_button_tag 'bug[status]',0, @bug.status == 0 ? true : false, :class => 'new'  %>未修复
      <%= radio_button_tag 'bug[status]',1, @bug.status == 1 ? true : false, :class => 'new'  %>已修复
    </div>
  </div>
  <div class="control-group">
    <div class="controls">
      <input type="hidden" id="id" name="id" value="<%= @bug.id %>">
      <button type="submit" class="btn">提交</button>
    </div>
  </div>
</fieldset>
<% end %>
